package com.renmindangjiazuozu.tangmingzhi;
import java.util.Scanner;
import java.util.Random;
public class qingwawangzi {
    public int daoyou(){
        char a;
        System.out.println("这是第一只青蛙王子");
        System.out.println("自己看!");
        System.out.println("身体绿的慌");
        Scanner YN=new Scanner(System.in);
        System.out.println("要看下一只吗（1：要；2：不要）");
        int i= YN.nextInt();
        while(i==1) {
            System.out.println("这是下一只青蛙王子");
            int yanse= new Random().nextInt(3);
            switch (yanse) {
                case 1:
                    System.out.println("它是深绿色");
                    break;
                case 2:
                    System.out.println("它是浅绿色");
                    break;
            }
            int xingqing = new Random().nextInt(4);
            switch (xingqing) {
                case 1:
                    System.out.println("它现在很(开心)");
                    break;
                case 2:
                    System.out.println("它现在很(生气)");
                    break;
                case 3:
                    System.out.println("它现在很(伤心)");
                    break;
            }
            int shengao = new Random().nextInt(4);
            switch (shengao) {
                case 3:
                    System.out.println("它现在(长到2m，对人类十分危险）");
                    break;
                case 2:
                    System.out.println("它现在（1.8m，还未成年。）");
                    break;
                case 1:
                    System.out.println("它现在（1.6m，还很小）");
                    break;
            }
            int zhangxiang= new Random().nextInt(3);
            switch (zhangxiang) {
                case 1:
                    System.out.println("它很(可爱)");
                    break;
                case 2:
                    System.out.println("它很(丑)");
                    break;
            }
            System.out.println("要看下一只吗（1：要；2：不要）");
            i= YN.nextInt();
            System.out.println("\n");
        }
        System.out.println("请和青蛙王子们说再见!");
       return 0;

    }
}

